<html xmlns:th="http://www.thymeleaf.org">
<div th:fragment="realweektable">
<table class="table table-striped table-hover table-bordered table-responsive">
					<tr>
						<th>部门</th>
						<th>成员</th>
						<th>星期一</th>
						<th>星期二</th>
						<th>星期三</th>
						<th>星期四</th>
						<th>星期五</th>
						<th>星期六</th>
						<th>星期日</th>
					</tr>

				    <tr th:each="weekList:${weekList}">
						<td th:text="${weekList.aoaDept.deptName}"></td>
						<td th:text="${weekList.aoaUser.userName}"></td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期一'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期二'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期三'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期四'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期五'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期六'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
						<td class="report" >
							<a th:href="@{/attendceedit2(attendsId=${aoaAttendsList.attendsId})}" th:if="${ weekList.weekOfday eq '星期日'}">
								<span th:if="${weekList.type eq 1}"   th:text=" '上班:' + ${weekList.attendHmtime}">-</span>
								<span  th:if="${weekList.type eq 2}" th:text=" '下班:' + ${weekList.attendHmtime}">-</span>
							</a>
						</td>
					</tr>
</table>
	<!--分页导航-->
	<div class="container">
		<div class="row text-center">
			<div class="col-md-12">
				<ul class="pagination">
					<li><a th:class="${currentPage eq 1 ? 'btn disabled' : '' }" href="javascript:;" th:href="@{/attendceweek(page=1)}">首页</a></li>
					<li><a th:class="${currentPage eq 1 ? 'btn disabled' : '' }" href="javascript:void(0);" th:href="@{/attendceweek(page=${currentPage}-1)}">&laquo;</a></li>

					<li th:class="${page eq currentPage} ? 'active' : ''" th:each="page:${#numbers.sequence(1,totalPage)}">
						<a href="javascript:void(0);" th:href="@{/attendceweek(page=${page})}" th:text="${page}">1</a>
					</li>

					<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : '' }" href="javascript:void(0);" th:href="@{/attendceweek(page=${currentPage}+1)}">&raquo;</a></li>
					<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : '' }" href="#" th:href="@{/attendceweek(page=${totalPage})}" style="border: 1px solid #ddd;">尾页</a></li>
					<li><a style="border: 0px;margin-left: 0px;">当前页<span th:text="${currentPage}"></span>/<span th:text="${totalPage}"></span>总页</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/dist/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/js/index.js}"></script>
</div>
</html>
